package com.itany.corejava.day02;

public class Test4 {

    public static void main(String[] args) {

        int i=1;
        i+=2;//i=i+2;
        System.out.println("i = " + i);

        System.out.println("1>3 = " + (1>3));

        String s1=new String("abc");
        String s2=new String("abc");

        System.out.println("s1 = " + s1);
        System.out.println("s2 = " + s2);
        System.out.println("s1==s2 = " + (s1==s2));
        System.out.println("s1.equals(s2) = " + s1.equals(s2));

        System.out.println("5%2 = " + (5%2));
        System.out.println("-5%2 = " + (-5%2));
        System.out.println("-5%-2 = " + (-5%-2));
        System.out.println("5%-2 = " + (5%-2));

        int i1=2;
        System.out.println("i1<<3 = " + (i1<<3));
        
        int i2=16;
        System.out.println("i2>>1 = " + (i2>>1));
        System.out.println("i2>>>1 = " + (i2>>>1));

        int i3=-1;
        System.out.println("i3>>1 = " + (i3>>1));
        System.out.println("i3>>>1 = " + (i3>>>1));


        System.out.println("104&39 = " + (104&39));
        System.out.println("104|39 = " + (104|39));
        System.out.println("104^39 = " + (104^39));
        
        int i4=0;
        System.out.println("~i4 = " + ~i4);
    }
}
